<?php
/**
 * Created by PhpStorm.
 * User: lee
 * Date: 2018/3/14
 * Time: 下午3:43
 */

use Biz\service\trade\Order as sOrder;
use Doraemon\tools\ActionLog;

class PaySuccInfoAction extends ActionPlugin
{
    const USER_LEVEL = self::LEVEL_REGISTER;

    public function main()
    {
        $orderPNo = $this->getRequest()->getQuery('order_pno');
        $addressId = $this->getRequest()->getQuery('address_id',0);


        $data = sOrder::getPaySuccInfo($this->uid,$orderPNo, $addressId);

        ActionLog::log($this->uid, ['order_pno' => $orderPNo], ActionLog::ORDER_RECEIPT_SETTING);

        $this->setSuccess($data);

    }
}